{"version":3,"sources":["edit_content_panel.js"],"names":["BX","namespace","SidebarButton","Landing","UI","Button","Panel","ContentEdit","id","data","Content","apply","this","arguments","layout","classList","add","appendFooterButton","BaseButton","text","Loc","getMessage","onClick","Type","isFunction","onSaveHandler","className","attrs","title","onCancelHandler","showedPanel","prototype","constructor","__proto__","show","StylePanel","getInstance","isShown","hide","then","call","bind","appendForm","form","forms","content","appendChild","getNode","checkReadyToSave","formButton","code","empty","fields","length","scrollTo","highlightItem","sidebarButtons","sidebar","forEach","field","fieldButton","selector","child","event","preventDefault","stopPropagation","replaceForm","oldForm","newForm","remove","replace","get","newFormButton","type","compact","enable","element","highlightClass","removeHighlights","Dom","addClass","setTimeout","removeClass","nodeList","querySelectorAll","node"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,uBAEb,IAAIC,EAAgBF,GAAGG,QAAQC,GAAGC,OAAOH,cAWzCF,GAAGG,QAAQC,GAAGE,MAAMC,YAAc,SAASC,EAAIC,GAE9CT,GAAGG,QAAQC,GAAGE,MAAMI,QAAQC,MAAMC,KAAMC,WACxCD,KAAKE,OAAOC,UAAUC,IAAI,iCAE1BJ,KAAKK,mBACJ,IAAIjB,GAAGG,QAAQC,GAAGC,OAAOa,WAAW,qBAAsB,CACzDC,KAAMnB,GAAGG,QAAQiB,IAAIC,WAAW,cAChCC,QAAStB,GAAGuB,KAAKC,WAAWf,EAAKgB,eAAiBhB,EAAKgB,cAAgB,OACvEC,UAAW,iCACXC,MAAO,CAACC,MAAO5B,GAAGG,QAAQiB,IAAIC,WAAW,oCAG3CT,KAAKK,mBACJ,IAAIjB,GAAGG,QAAQC,GAAGC,OAAOa,WAAW,uBAAwB,CAC3DC,KAAMnB,GAAGG,QAAQiB,IAAIC,WAAW,gBAChCC,QAAStB,GAAGuB,KAAKC,WAAWf,EAAKoB,iBAAmBpB,EAAKoB,gBAAkB,OAC3EH,UAAW,mCACXC,MAAO,CAACC,MAAO5B,GAAGG,QAAQiB,IAAIC,WAAW,uCAK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